<!--  费用上账-->
<template>
  <a-card :bordered='false'>
    <!-- 查询区域 -->
    <search ref='search' :config='searchConfig' @search='search' @getHeight='getHeight' />

    <!-- 操作按钮区域 -->
    <div class='table-operator'>

    </div>
    <!-- table区域-begin -->
    <a-table
      ref='table'
      size='middle'
      bordered
      rowKey='id'
      :scroll='{x:1600,y:pageHeight-seachHeight-220}'
      :columns='columns'
      :dataSource='dataSource'
      :pagination='ipagination'
      class=''
      :loading='loading'
      :customRow='onSingleClickRow'
      :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange,type:'radio'}"
      @change='handleTableChange'>
    </a-table>
    <!--<cost-detail ref='modalForm' @ok='modalFormOk'></cost-detail>-->

  </a-card>
</template>

<script>
import { PageListMixin } from '@/mixins/PageListMixin'
import { getAction, postAction } from '@api/manage'

export default {
  name: 'costUp',
  mixins: [PageListMixin],
  components: {
  },
  data() {

    return {
      description: '费用上账',
      searchConfig: [
        {
          type: 'input',
          name: 'orderCode',
          placeholder: '请输入订单编码'
        },
        {
          type: 'input',
          name: 'custCode',
          placeholder: '请输入经销商编码'
        },
        {
          type: 'input',
          name: 'msg',
          placeholder: '请输入报错信息'
        },
        {
          type: 'date',
          name: 'createDate',
          placeholder: '请输入创建日期'
        }
        ],
      // 表头
      columns: [
        {
          title: '创建日期',
          align: 'left',
          dataIndex: 'createDate',
        },
        {
          title: '创建时间',
          align: 'left',
          dataIndex: 'createDateTime',
        },
        {
          title: '订单编码',
          align: 'left',
          dataIndex: 'orderCode',
        },
        {
          title: '经销商编码',
          align: 'left',
          dataIndex: 'custCode',
        },
        {
          title: '经销商名称',
          align: 'left',
          dataIndex: 'custName',
        },
        {
          title: '报错信息',
          align: 'left',
          dataIndex: 'msg',
        },
        // {
        //   title: '操作',
        //   dataIndex: 'action',
        //   align: 'left',
        //   width: 60,
        //   fixed: 'right',
        //   scopedSlots: {
        //     filterDropdown: 'filterDropdown',
        //     filterIcon: 'filterIcon',
        //     customRender: 'action'
        //   }
        // }
      ],

      url: {
        // 列表接口
        list: window._CONFIG['domianTpmURL'] + '/TpmOrderLogController/findPageList',
      },
      moneyItem: {}
    }
  },
  created() {


  },
  watch: {},
  computed: {},
  methods: {}
}
</script>

<style lang='less' scoped>

</style>